package it.lovaex.scb.factory;

import java.math.BigDecimal;
import java.util.Date;

import it.lovaex.scb.model.GroceryItem;

public class GroceryFactory {

	public static GroceryItem create(String name, BigDecimal price, Date expirationDate) {
		return new GroceryItem(name, price, expirationDate);
	}
	
	public static GroceryItem create(String name, BigDecimal price) {
		return new GroceryItem(name, price, new Date());
	}

}
